VirtualTimeSchedulerBase.AdvanceTo(TAbsolute) method¶
Defined in
Type: VirtualTimeSchedulerBaseSystem.Reactive.Concurrency
Assembly: System.Reactive.dll
Applies to
netstandard2.0
public void AdvanceTo(TAbsolute time)
Summary: Advances the scheduler's clock to the specified time, running all work till that point.
Parameters
| Name | Type | Description |
|---|---|---|
time | TAbsolute | Absolute time to advance the scheduler's clock to. |
Exceptions
| Type | Condition |
|---|---|
| System.ArgumentOutOfRangeException | time is in the past. |
| System.InvalidOperationException | The scheduler is already running. VirtualTimeScheduler doesn't support running nested work dispatch loops. To simulate time slippage while running work on the scheduler, use [Sleep](# |